/-app
/-files ...
FileTree.ts
SyncStorageAccess.ts
/-imports
/-storage
/-storage/api
/-storage/dom
StorageAccess.ts
SyncStorageAccess.ts
/-storage/indexedDB
/-storage/localStorage
/-storage/webSQL
/-typings
functions.ts
index.html
x
 
1
module teapo.files {
2
  
3
  export class FileTree {
4
​
5
    constructor(private _host: HTMLUListElement) {
6
    }
7
    
8
    
9
  }
10
​
11
  interface Entry { 
12
    li: HTMLLIElement;
13
    name: string;
14
    fullPath: string;
15
​
16
    getAttribute(name: string): string;
17
    setAttribute(name: string, value: string): void;
18
  }
19
​
20
  class ChildEntryList {
21
​
22
    private _childrenByName
23
    
24
    constructor(public ul: HTMLUListElement) {
25
    }
26
    
27
  }
28
​
29
  class DirectoryEntry implements Entry {
30
​
31
    li: HTMLLIElement;
32
    name: string;
33
    fullPath: string;
34
​
35
    getChild(fullPath: string): Entry {
36
      return null;
37
    }
38
​
39
    getAttribute(name: string): string { 
40
      return null;
41
    }
42
​
43
    setAttribute(name: string, value: string): void { 
44
    }
45
​
46
  }
47
  
48
  class FileEntry implements Entry {
49
​
50
    li: HTMLLIElement;
51
    name: string;
52
    fullPath: string;
53
​
54
    readContent(start: number, length: number): string {
55
      return null;
56
    }
57
​
58
    getAttribute(name: string): string { 
59
      return null;
60
    }
61
​
62
    setAttribute(name: string, value: string): void { 
63
    }
64
    
65
  }
66
  
67
}
21:27